package com.tsh.chat.domain;
import java.util.Date;
public class ChatHistory {
    private int id;
    private int user_id;
    private String role;
    private String content;
    private Date date;

    // Getters and Setters
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "ChatHistory{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", role='" + role + '\'' +
                ", content='" + content + '\'' +
                ", date=" + date +
                '}';
    }
}
